package com.xwj.back.controller.user;


import cn.hutool.core.lang.hash.Hash;
import com.xwj.back.service.user.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class RegisterController {

    @Autowired
    private RegisterService registerService;

    @PostMapping("/user/register/")
    public Map<String,String> Register(@RequestBody Map<String,String> data){
        HashMap<String, String> map = new HashMap<>();
        map.put("message", registerService.Register(data));
        return map;
    }

}
